package com.skp.shaphan.ui.dialogs;

import javax.swing.JDialog;
import javax.swing.JFrame;

import com.skp.shaphan.ShaphanApp;
import com.skp.shaphan.ui.util.ShaphanJFXPanel;

/**
 * This dialog allows a user to connect to a database.
 * @author Stephen Phillips
 *
 */
public class JavaFXConnectionDialog extends JDialog {
	/**
	 * This dialog allows a user to connect to a database.
	 * @author Stephen Phillips
	 *
	 */
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2010714151920082219L;
	
	public JavaFXConnectionDialog() {
		super(ShaphanApp.getMainWindow());	
		
        this.add(new ShaphanJFXPanel("ConnectionDialog.fxml", new ConnectionDialogController()));
        this.setSize(600, 400);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

	}
}
